import request from '../utils/request';

// 添加轮播图
export function add(params) {
  return request.post('/banner/add', params);
}

// 删除轮播图数据
export function deleteItem(params) {
  return request.get('/banner/delete', { params });
}

// 删除所有的轮播图
export function removeAll(params) {
  return request.get('/banner/removeAll', { params });
}

// 查询轮播图的数据
export function getBannerList(params) {
  return request.get('/banner/list', { params });
}
